import request from '@/utils/request'

// 每日签到
export function dailyCheckIn() {
  return request({
    url: '/points/check-in',
    method: 'post'
  })
}

// 发布动态奖励积分
export function addPointsForPost() {
  return request({
    url: '/points/post-reward',
    method: 'post'
  })
}

// 获取积分历史记录
export function getPointsHistory() {
  return request({
    url: '/points/history',
    method: 'get'
  })
}

// 获取积分排行榜
export function getPointsRanking() {
  return request({
    url: '/points/ranking',
    method: 'get'
  })
}